﻿using System;
using OA.DBUtility;

namespace OA.Model
{
	/// <summary>
	/// Dept:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
    [MappingTable("Dept")]
	public partial class DeptInfo
	{
		public DeptInfo()
		{}
		#region Model
		private int _id;
		private string _deptname;
		private string _description;
		private int? _orderid;
		private DateTime? _createtime= DateTime.Now;
		/// <summary>
		/// 
		/// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
        [DataField("DeptName")]
		public string DeptName
		{
			set{ _deptname=value;}
			get{return _deptname;}
		}
		/// <summary>
		/// 
		/// </summary>
        [DataField("description")]
		public string description
		{
			set{ _description=value;}
			get{return _description;}
		}
		/// <summary>
		/// 
		/// </summary>
        [DataField("OrderId")]
		public int? OrderId
		{
			set{ _orderid=value;}
			get{return _orderid;}
		}
		/// <summary>
		/// 
		/// </summary>
        [DataField("CreateTime")]
        [NoNeedInsert]
		public DateTime? CreateTime
		{
			set{ _createtime=value;}
			get{return _createtime;}
		}
		#endregion Model

	}
}

